package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Title        string  `gorm:"type:varchar(30);not null;comment:商品名称"`
	Price        float64 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	Address      string  `gorm:"type:varchar(50);not null;comment:地址"`
	ProductImage string  `gorm:"type:varchar(500);not null;comment:商品图片"`
	UserId       int     `gorm:"type:int(11);not null;comment:用户Id"`
}
